<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

$coming_soon_url = Mage::helper('complex')->getComingSoonPageUrl();
$customer = Mage::getSingleton('customer/session')->getCustomer();

$account = Mage::helper('rewardpoints/customer')->getAccountByCustomer($customer);
?>
<div class="dashboard">
    <div class="page-title">
        <div class="page-title-all">
            <div class="page-title-user">
                <a href="#"><span><?php  echo $this->getCustomer()->getName();?></span></a>
            </div>
        </div>
    </div>
    <div class="page-title-integral">
        <ul>
            <li><a href="#"><span><?php echo $customer->getLastname(); ?></span><p><?php echo $this->__("店铺名"); ?></p></a></li>     
            <li class="integral-user"><a href="#"><span><?php echo $account->getPointBalance(); ?></span><p><?php echo $this->__('我的积分') ?></p></a></li>
        </ul>
    </div>


    <ul class="menu-all-block">
        <li>
            <a href="<?php echo $this->getBaseUrl() ?>sales/order/history/"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon1.png') ?>"/><span><?php echo $this->__('我的订单') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i>
            </a>
        </li>

        <li class="Account-information">
        <a href="<?php echo $this->getBaseUrl() ?>customer/account/edit/"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon5.png') ?>"/><span><?php echo $this->__('账户资料') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i></a>
        </li>
        
        <li><a href="<?php echo $this->getBaseUrl() ?>customer/address/"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon3.png') ?>"/><span><?php echo $this->__('收货地址管理') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i></a></li>
        <li><a href="<?php echo $this->getBaseUrl() ?>contacts/"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon4.png') ?>"/><span><?php echo $this->__('意见反馈') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i></a></li>
        <li><a href="<?php echo $this->getBaseUrl() ?>about-magento-demo-store/"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon7.png') ?>"/><span><?php echo $this->__('关于我们') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i></a></li>
        <li><a href="<?php echo $this->getUrl('customer/account/logout')?>"><img src="<?php echo $this->getSkinUrl('images/Personal-center-icon6.png') ?>"/><span><?php echo $this->__('退出') ?></span><i class="fa fa-angle-right menu-all-block-iRight"></i></a></li>
    </ul>
    <?php echo $this->getChildHtml('app_version'); ?>
</div>